package itcz.example.pattern.behavior_type.chain;

/**
 * @ClassName: GeneralManager
 * @Author: ITCZ
 * @Date: 2025-07-24
 * @Description:
 */
public class GeneralManager extends Handler {

    public GeneralManager() {
        super(NUM_SEVEN);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天," + leave.getContent() + "。");
        System.out.println("总经理审批：同意。");
    }
}
